<?php
	require_once ($_SERVER['DOCUMENT_ROOT']. "/_config/config.php");
	
	function dbconnect() 
	{ 
		global $dbhost, $dbuser, $dbpassword, $dbdatabase;
		static $connect = null; 
		
		if ($connect === null){ 
			$connect = mysql_connect($dbhost, $dbuser, $dbpassword); 
			mysql_select_db($dbdatabase, $connect); 
			mysql_query("SET NAMES 'utf8'", $connect);
		} 
		return $connect; 
	}
	
	function _filterSQL($param){
		$param = mysql_real_escape_string($param);
		return $param;
	}
?>